package com.offcn.pojo;

import java.util.Objects;

public class Student {
    private String name;
    private Integer stuId;
    private Integer math;
    private Integer Chinese;
    private Integer English;
    private Integer wuli;
    private Integer huaxue;
    private Integer shengwu;
    private Integer zong;

    public Integer getZong() {
        zong =math+Chinese+English+wuli+huaxue+shengwu;
        return zong;
    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    public Integer getMath() {
        return math;
    }

    public void setMath(Integer math) {
        this.math = math;
    }

    public Integer getChinese() {
        return Chinese;
    }

    public void setChinese(Integer chinese) {
        Chinese = chinese;
    }

    public Integer getEnglish() {
        return English;
    }

    public void setEnglish(Integer english) {
        English = english;
    }

    public Integer getWuli() {
        return wuli;
    }

    public void setWuli(Integer wuli) {
        this.wuli = wuli;
    }

    public Integer getHuaxue() {
        return huaxue;
    }

    public void setHuaxue(Integer huaxue) {
        this.huaxue = huaxue;
    }

    public Integer getShengwu() {
        return shengwu;
    }

    public void setShengwu(Integer shengwu) {
        this.shengwu = shengwu;
    }





    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", stuId='" + stuId + '\'' +
                ", math=" + math +
                ", Chinese=" + Chinese +
                ", English=" + English +
                ", wuli=" + wuli +
                ", huaxue=" + huaxue +
                ", shengwu=" + shengwu +
                ", zong=" + zong +
                '}';
    }

}
